home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 4
/
The Arsenal Files 4 (Arsenal Computer).ISO
/
casm
/
au116-as.exe
/
UTIL
/
KEY.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1994-02-26
|
631b
|
35 lines
#include "..\au.hpp"
/*******************************************************************/
void check_for_key()
{
char opt;
around:
if (kbhit())
{
opt=my_getch();
if (opt==' ')
goto around;
for (;;)
{
fprintf(stderr, "Continue Y/N:");
opt = toupper(my_getch());
fprintf(stderr, "\n");
if (opt=='N')
exit(0);
else if (opt=='Y')
break;
}
}
}
/*******************************************************************/
void press_any_key(AU *au)
{
if (au->pause == ON)
{
fprintf(stderr, "Press any key to continue");
my_getch();
au_printf(au, "\n\n");
}
}